package com.jar.exercise.泛型;

import java.util.ArrayList;
import java.util.List;

/**
 * @author ZhangShengHao
 * @className Demo1
 * @description TODO
 * @date 2020/1/24 15:13
 */
@SuppressWarnings("unchecked")
public class Demo {
	public static void main(String[] args) {
		List<String> list1 = new ArrayList<>();
		List<Object> list2 = new ArrayList<>();
		List s = new ArrayList();
		list2 = s;
		List<String> rawList = new ArrayList();
		/**
		 * List<String>和List<Object>没有任何关系，除非使用  限定通配符 ？/
		 */
//        list2 = list1;
		List<?> ss = new ArrayList<>();
		ss = list2;
	}
}
